// #ifndef VUE3
import Vue from 'vue'
import App from './App'

// 引入并初始化 vconsole
import VConsole from 'vconsole'
new VConsole()
console.log('vconsole 初始化完成')

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'

// 引入并初始化 vconsole
import VConsole from 'vconsole'
new VConsole()
console.log('vconsole 初始化完成 (Vue3)')

export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif